package com.uenpay.oem.adapter;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.uenpay.oem.R;

/**
 * Created by liulou on 2017/5/4.
 * desc:
 */

public class HomeAdapter extends RecyclerView.Adapter {
    Context context;
    String[] data;

    public HomeAdapter(Context context) {
        this.context = context;
        data = new String[]{"adadada", "afsgfdga"};
    }

    @Override
    public long getItemId(int position) {
        return super.getItemId(position);
    }

    @Override
    public int getItemCount() {
        return data.length;
    }

    @Override
    public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {

    }

    @Override
    public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        return new MyViewHolder(LayoutInflater.from(context).inflate(R.layout.item_home_list, parent, false));
    }

    class MyViewHolder extends RecyclerView.ViewHolder {

        public MyViewHolder(View itemView) {
            super(itemView);
        }
    }
}
